package com.example.mes_boot.service.imp;

import com.example.mes_boot.mapper.delemapper;
import com.example.mes_boot.mapper.updatamapper;
import com.example.mes_boot.pojo.factory;
import com.example.mes_boot.pojo.process;
import com.example.mes_boot.pojo.project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class updataservieimpl {
    @Autowired
    private updatamapper updatamapper;

    public  void up(Integer id,Integer material_id) {
        updatamapper.up(id,material_id);
    }

    public void updata(Integer id,String name, String address, String rt_power, Integer rt_voltage, String status, String remark) {
        updatamapper.updata(id,name,address,rt_power,rt_voltage,status,remark);
    }
    public void projectup(Integer id,String name, String leader, String startDate, String endDate, String status) {
         updatamapper.projectup(id,name,leader,startDate,endDate,status);
    }

    public Integer updataprocess(process id) {
        return updatamapper.updataprocess(id);
    }

    public void updatamaterial(String id,String name) {
        updatamapper.updatamaterial(id, name);
    }
}
